package observer

import "utilx/logx"

// 观察者接口

type Observer interface {
	update(string)
	getID() string
}

// 观察者

type Customer struct {
	id string
}

func (c *Customer) update(itemName string) {
	logx.Debugf("Customer:Sending email to %s for item %s\n", c.id, itemName)
}

func (c *Customer) getID() string {
	return c.id
}
